import http from "./http.js";

export const getDistrict = (data) => {
    let result = http.get(`/district?page=${data.page}&size=${data.size}`);
    return result;
}

export const getDistrictInfor = (data) => {
    let result = http.get(`/district/list`);
    return result;
}

export const addDistrict = (data) => {
    let result = http.post(`/district/add`, data);
    return result;
}

export const updateDistrict = (data) => {
    let result = http.post(`/district/update`, data);
    return result
}

export const deleteDistrict = (data) => {
    let result = http.post(`/district/del`, data);
    return result;
}